package com.easyaccount.dao;

import com.easyaccount.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectByName(@Param("start") int start, @Param("size") int size, @Param("roleName") String roleName);

    int selectByNameCount(@Param("roleName") String roleName);

    int selectByIdAndNameCount(Role role);

    List<Role> selectAll();
}